<?php


namespace App\Admin\Actions;

use App\Admin\Forms\User\UserProfile;
use App\Models\Admin\AdminNotification;
use Dcat\Admin\Actions\Action;
use Dcat\Admin\Admin;
use Dcat\Admin\Widgets\Dropdown;
use Dcat\Admin\Widgets\Modal;

class NotificationAction extends Action
{
    /**
     * @return string
     */
    protected $title = '<i class="ficon feather icon-bell" style="font-size: 1.5rem"></i>';

    public function render()
    {
        $cnt = AdminNotification::where("admin_id",Admin::user()->id)->whereNull("read_at")->count();
        return view('admin.navbar-1',[
            "unread" => $cnt
        ]);
    }
}
